package com.jinke.api.modules.ums.request;

import com.jinke.api.modules.base.request.BasePageListRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
public class LogQueryRequest extends BasePageListRequest {

    @ApiModelProperty("用户名")
    private String username;

    @ApiModelProperty("URI搜索")
    private String uri;

    @ApiModelProperty("IP搜索")
    private String ip;

    @ApiModelProperty("起始日期，yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startDate;

    @ApiModelProperty("结束日期，yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endDate;
}
